package com.bookyourtrek.action;

import java.util.List;

import com.bookyourtrek.model.HomeModel;
import com.opensymphony.xwork2.ActionSupport;

public class CreateTrekAction extends ActionSupport{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private List<String> locations;
	
	public List<String> getLocations() {
		return locations;
	}

	public void setLocations(List<String> locations) {
		this.locations = locations;
	}

	public String createtrek () {
		HomeModel hm = new HomeModel();
		locations = hm.getcountrylist();
		return SUCCESS;
		
	}

}
